package com.example.service;

import com.example.domain.Library;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.dto.LibraryAddDTO;
import com.example.dto.LibraryCloseDTO;
import com.example.dto.LibraryUpdateDTO;
import com.example.util.Result;

/**
* @author HP
* @description 针对表【library】的数据库操作Service
* @createDate 2025-08-24 13:41:56
*/
public interface LibraryService extends IService<Library> {

    Result getLibraries();

    Result getLibraryRooms(Long libraryId);

    Result addLibrary(LibraryAddDTO libraryAddDTO);

    Result closeLibrary(LibraryCloseDTO libraryCloseDTO);

    Result openLibrary(Long id);

    Result updateLibrary(LibraryUpdateDTO libraryUpdateDTO);

    Result deleteLibrary(Long id);

    Result getLibraryBooks(Long libraryId);

    Result getLibraryBookshelfs();
}
